package jym.tan.tmdb.bean.wrapper;

import java.io.Serializable;
import java.util.List;

import jym.tan.tmdb.bean.Base;
import jym.tan.tmdb.bean.Image;

import com.google.gson.annotations.SerializedName;

/**
 * The Class PersonImageWrapper. The Wrapper class which holds the 
 * {@link List} of {@link Image} of profile and other information.
 * <p>
 * 	The properties are:
 * 	<ul>
 * 		<li>id</li>
 * 		<li>profiles</li>
 * 	</ul>
 * </p>	 
 * @author Tanmoy 
 */
public class PersonImageWrapper extends Base implements Serializable {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 5396053566150642271L;

	/** The profiles. */
	@SerializedName("profiles")
	private List<Image> profiles;
	
	/**
	 * Default Constructor.
	 */
	public PersonImageWrapper() {
		
	}

	/**
	 * Gets the {@link List} of {@link Image} of profile.
	 *
	 * @return the profiles
	 */
	public List<Image> getProfiles() {
		return profiles;
	}

	/**
	 * Sets the {@link List} of {@link Image} of profile.
	 *
	 * @param profiles the new profiles
	 */
	public void setProfiles(List<Image> profiles) {
		this.profiles = profiles;
	}
	
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.Base#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("id:").append(id).
			append(",").
			append("profiles:").append(profiles).
			append("}");
		return builder.toString();
	}
}
